/*
 *
 *
 *
 *
 */

package com.usefullc.user.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.usefullc.system.entity.BaseEntity;
import com.usefullc.system.validator.UsefulPropertyVerify;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@TableName("u_dept")
@ApiModel("部门")
@Data
public class Dept extends BaseEntity {


    @ApiModelProperty(notes = "编码--字典关系唯一值")
    private String code;

    @UsefulPropertyVerify(required = true)
    @ApiModelProperty(notes = "父ID")
    private Long parentId;


    @UsefulPropertyVerify(required = true,minLen = 2,maxLen = 20)
    @ApiModelProperty(notes = "名称")
    private String name;

    @UsefulPropertyVerify(required = true,min = 1)
    @ApiModelProperty(notes = "序号")
    private Integer orderNo;

    @UsefulPropertyVerify(minLen = 2,maxLen = 200)
    @ApiModelProperty(notes = "描述")
    private String description;



    public Dept(){
    }

}
